package com.heitian.ssm.dao;

import com.heitian.ssm.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by mishuai on 2018/3/15.
 */

@Repository
public interface UserDao {

    User selectUserById(@Param("userId") Long userId);

    User selectUserByPhoneOrEmail(@Param("emailOrPhone") String emailOrPhone, @Param("state") Short state);

    List<User> selectAllUser();

  /*  int insertUser(@Param("userEmail") String email, @Param("password") String doPassword, @Param("code") String doCode);

    User selectUserByEmail(@Param("userEmail") String email);*/
}
